if __name__ == '__main__':
    a = 78
    print(bin(a))
    b = -78
    print(bin(b))
    print(bin(~a), ~a)
    print(bin((~a) + 1), (~a) + 1)
    print(bin((~b) + 1), (~b) + 1)

    e = -8
    print(bin((~e) + 1), (~e) + 1)

    c = 10
    d = 12
    print(c | d, c & d, c ^ d)

    print(bin(1 << 5))
